<?php
	date_default_timezone_set("PRC");
	
	$db = mysql_connect("localhost", "root", "li999888") or die("数据库连接失败！");
	//mysql_query("set names 'utf8'");
	mysql_query('set character_set_results=utf8');
	mysql_select_db("module_db") or print("数据库选择失败！".mysql_error());
	/*
	if(!mysql_select_db("ProjectMgrDB")) {
		echo "ProjectMgrDB 数据库不存在！<br>";
		if(mysql_query("create database ProjectMgrDB", $db)) {
			echo "ProjectMgrDB 数据库创建成功！<br>";
			mysql_select_db("ProjectMgrDB");
			if(mysql_query("create table user(id int(3) auto_increment not null primary key, name char(10) not null, pwd char(18) not null);", $db)) {
				echo "user表创建成功！<br>";
			} else {
				echo "user表创建失败！<br>";
			}
		} else {
			echo "数据库创建失败！".mysql_error();
		}
	}
	*/
?>